#!/usr/bin/python.exe
if __name__ == '__main__':
  import sys
  import os
  sys.path.insert(0, os.path.abspath('config'))
  import configure
  configure_options = [
    '--CC_LINKER_FLAGS=msvcrt.lib',
    '--CXX_LINKER_FLAGS=msvcrt.lib',
    '--doCleanup=1',
    '--download-f2cblaslapack=/e/petsc-3.6.4/config/f2cblaslapack-3.4.2.q1.tar.gz',
    '--ignore-cygwin-link',
    '--prefix=/e/petsc-3.12.5',
    '--useThreads=0',
    '--with-64-bit-indices=1',
    '--with-cc=win32fe cl',
    '--with-cuda=0',
    '--with-cxx=win32fe cl',
    '--with-debugging=1',
    '--with-fc=0',
    '--with-mpi-include=/d/MPI/Include',
    '--with-mpi-lib=/d/MPI/Lib/x64/msmpi.lib',
    '--with-mpi=1',
    '--with-mpiexec=/d/MPI/Bin/mpiexec.exe',
    '--with-shared-libraries=0',
    'CXXFLAGS=-DMPICH_SKIP_MPICXX -MT -GR -EHsc',
    'PETSC_ARCH=win-nt',
  ]
  configure.petsc_configure(configure_options)
